package com.qiyu.mall.user.interfaces.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author LinXuKun
 * @Email 97025664@qq.com
 * @date 2019/12/28 13:46
 * @content
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class AccountReqDTO implements Serializable {

    private static final long serialVersionUID = -581034534263996657L;

    private Integer accountId;
    private String nickname;
    private String accountType;
    private String trueName;
    private long sex;
    private long grade;
    private double amount;
    private String tel;

    @NotNull(message = "页码不能为空")
    @Min(value = 0, message = "页码不能为负数")
    private Integer page;

    @NotNull(message = "页大小不能为空")
    @Min(value = 0, message = "页大小不能为负数")
    private Integer pageSize;
}
